from datetime import datetime

current_time = datetime.now()
current_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
print("当前时间：")
print(current_time)

time = datetime.strptime(str(current_time), "%Y-%m-%d %H:%M:%S")
print(time)
